import { createApp } from 'vue'
import App from './App.vue'
import store from "@/store"
import router from "@/router"
import { i18n } from "@/locale"
import "@/router/permission"

// load
import { loadSvg } from "@/icons"
import {loadCard} from "@/components/Card"
import { loadPlugins, } from "@/plugins"

import "element-plus/dist/index.css"
import "element-plus/theme-chalk/dark/css-vars.css"
import "vxe-table/lib/style.css"
import "vxe-table-plugin-element/dist/style.css"

// css
import "@/styles/index.scss"

const app = createApp(App)


/** 加载插件 */
loadPlugins(app)
/** 加载全局 SVG */
loadSvg(app)
loadCard(app)



app.use(store).use(router).use(i18n).mount("#app")